package com.atguigu.yygh.hosp;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.web.bind.annotation.CrossOrigin;
import springfox.documentation.swagger2.annotations.EnableSwagger2;


@EnableFeignClients(value = "com.atguigu") //从指定的包下(子包)加载feign接口
@EnableDiscoveryClient
@EnableSwagger2
@ComponentScan(basePackages = "com.atguigu")
@MapperScan(basePackages = "com.atguigu.yygh.hosp.mapper")
//Mapper的包扫描,必须写到Mapper的包,否则扫描不到
@SpringBootApplication
public class ServiceHospApplication {
    public static void main(String[] args) {
        SpringApplication.run(ServiceHospApplication.class,args);
    }
}
